<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta http-equiv="Access-Control-Allow-Origin" content="*">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <title th:text="${parameter.mallName}"></title>
    <meta name="keywords" th:content="${parameter.mallName}">
    <meta name="description" th:content="${parameter.mallName}">
    <!--[if lt IE 9]>
    <meta http-equiv="refresh" content="0;ie.html"/>
    <![endif]-->
    <link rel="shortcut icon" th:href="@{favicon.ico}">
    <link id="layuicss-layer" rel="stylesheet" th:href="@{/plugins/layui/css/layui.css}" media="all">
    <link rel="stylesheet" th:href="@{/plugins/layui/css/admin-yinhuan.css}" media="all">
    <link th:href="@{/css/font-awesome.min.css?v=4.4.0}" rel="stylesheet">
</head>
<body class="layui-layout-body">
<div id="LAY_app">
    <div class="layui-layout layui-layout-admin">
        <!-- 头部区域 -->
        <div th:replace="@{common/header-yinhuan}::header-div"></div>
        <!-- 侧边菜单 -->
        <div th:replace="@{common/sidebar-yinhuan}::sidebar-div"></div>
        <!-- 页面标签 -->
        <div class="layadmin-pagetabs" id="LAY_app_tabs">
            <div class="layui-icon layadmin-tabs-control layui-icon-prev" layadmin-event="leftPage"></div>
            <div class="layui-icon layadmin-tabs-control layui-icon-next" layadmin-event="rightPage"></div>
            <div class="layui-icon layadmin-tabs-control layui-icon-down">
                <ul class="layui-nav layadmin-tabs-select" lay-filter="layadmin-pagetabs-nav">
                    <li class="layui-nav-item" lay-unselect>
                        <a href="javascript:;"></a>
                        <dl class="layui-nav-child layui-anim-fadein">
                            <dd layadmin-event="closeThisTabs"><a href="javascript:;">关闭当前标签页</a></dd>
                            <dd layadmin-event="closeOtherTabs"><a href="javascript:;">关闭其它标签页</a></dd>
                            <dd layadmin-event="closeAllTabs"><a href="javascript:;">关闭全部标签页</a></dd>
                        </dl>
                    </li>
                </ul>
            </div>
            <div class="layui-tab" lay-unauto lay-allowClose="true" lay-filter="layadmin-layout-tabs">
                <ul class="layui-tab-title" id="LAY_app_tabsheader">
                    <li th:lay-id="@{${goType}}" data-index="0" th:lay-attr="@{${goType}}" class="layui-this"><i class="layui-icon layui-icon-home"></i></li>
                </ul>
            </div>
        </div>

        <!-- 主体内容 -->
        <div class="layui-body" id="LAY_app_body">
            <div class="layadmin-tabsbody-item layui-show ">
                <iframe th:src="@{${goType}}" id="iframe0" frameborder="0" lay-id="main" class="layadmin-iframe layui-tab-item layui-show"></iframe>
            </div>

            <div class="footer">
                <div class="pull-left">Powered by<label >琤一智能</label></div>
                <div class="pull-right"><label th:text="${parameter.mallName}"></label></div>
            </div>
        </div>

        <!-- 辅助元素，一般用于移动设备下遮罩 -->
        <div class="layadmin-body-shade" layadmin-event="shade"></div>
        <input type="hidden" id="group_code" th:value="${group_code}">
    </div>
</div>
<script th:inline="javascript"> var ctx = [[@{/}]]; </script>
<!-- 全局js -->

<script type="text/javascript" th:src="@{/js/jquery.min.js?v=2.1.4}"></script>
<script type="text/javascript" th:src="@{/plugins/layui/layui.js}"></script>

<script th:inline="javascript">
    var group_code = $("#group_code").val();
</script>
<script type="text/javascript" th:src="@{/js/ajax-util.js}"></script>
<script>
    layui.config({
        base: ctx + 'plugins/layui/' //静态资源所在路径
    }).extend({
        index: 'admin/index' //主入口模块
    }).use('index');
    layui.use(['jquery','element'], function(){
        var $ = layui.jquery;
        var element = layui.element;
    });
    function personal() {
        layer.open({
            type: 2,
            title: '个人设置',
            maxmin: true,
            shadeClose: false,
            area: ['800px', '450px'],
            content: ctx +'sys/user/personal'
        });
    }
</script>
</body>
</html>
